{include file="blog/header" /}

</head>
<body>
<div class="page bg_rank">
    {include file="blog/footer" /}

<div>
    <form action="" method="post" target="nm_iframe" class="weui-cells weui-cells_form mt-0">
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">姓名：</label></div>
            <div class="weui-cell__bd">
                <input name="username" class="weui-input" type="text" placeholder="">
            </div>
        </div>
<!--        <div class="weui-cell">-->
<!--            <div class="weui-cell__hd"><label class="weui-label">手机号：</label></div>-->
<!--            <div class="weui-cell__bd">-->
<!--                <input name="phone" class="weui-input" type="text" placeholder="">-->
<!--            </div>-->
<!--        </div>-->
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <div class="weui-uploader">
                    <div class="weui-uploader__hd">
                        <p class="weui-uploader__title">照片：（最多只能上传3张）</p>
                        <div class="weui-uploader__info">0/3</div>
                    </div>
                    <div class="weui-uploader__bd">
                        <ul class="weui-uploader__files" id="uploaderFiles">
<!--                            <li class="weui-uploader__file" style="background-image:url(./images/pic_160.png)"></li>-->

                        </ul>
                        <div class="weui-uploader__input-box">
                            <input name="pics" id="uploaderInput" class="weui-uploader__input" type="file" accept="image/*" multiple="">
                        </div>
                    </div>
                </div>
            </div>
        </div>


<!--        <div class="weui-cells__title">介绍</div>-->
<!---->
<!--        <div class="weui-cell">-->
<!--            <div class="weui-cell__bd">-->
<!--                <textarea name="jieshao" class="weui-textarea" placeholder="您的自我介绍" rows="3"></textarea>-->
<!--                <div class="weui-textarea-counter"><span>0</span>/200</div>-->
<!--            </div>-->
<!--        </div>-->
        <button type="submit" class="weui-btn weui-btn_disabled weui-btn_primary">提交</button>
    </form>

</div>



<iframe id="id_iframe" name="nm_iframe" style="display:none;"></iframe>




<div class="footer-bottem">

</div>


</div>

<script type="text/javascript" class="uploader js_show">
    $(function(){
        var tmpl = '<li class="weui-uploader__file" style="background-image:url(#url#)"></li>',
            $gallery = $("#gallery"), $galleryImg = $("#galleryImg"),
            $uploaderInput = $("#uploaderInput"),
            $uploaderFiles = $("#uploaderFiles")
        ;
var pics=[];
        $uploaderInput.on("change", function(e){

            var src, url = window.URL || window.webkitURL || window.mozURL, files = e.target.files;

            for (var i = 0, len = files.length; i < len; ++i) {
                var file = files[i];
               pics.push(file);
console.log('files',files);
                console.log('pics',pics);
                if (url) {
                    src = url.createObjectURL(file);
                } else {
                    src = e.target.result;
                }

                $uploaderFiles.append($(tmpl.replace('#url#', src)));
            }
        });

        $uploaderFiles.on("click", "li", function(){
            $galleryImg.attr("style", this.getAttribute("style"));
            $gallery.fadeIn(100);
        });
        $gallery.on("click", function(){
            $gallery.fadeOut(100);
        });
    });</script>
</body>
</html>
